﻿using System;
using System.Collections.Generic;
using System.Text;

namespace QueueTest
{
    class CheckNamer
    {
        public static Message CheckName(Person person)
        {
            if (person != null && person.Name.EndsWith("Curry"))
            {
                return new Message() { ErrorCode = "Error_0001", ErrorInfo = "We don't use last names Curry." };
            }
            return null;
        }
    }
}
